[Snyk] Fix for 3 vulnerabilities#5620
Conversation
…ulnerabilities The following vulnerabilities are fixed with an upgrade: - https://snyk.io/vuln/SNYK-JS-WEBPACKDEVSERVER-10300775 - https://snyk.io/vuln/SNYK-JS-MULTER-10299078 - https://snyk.io/vuln/SNYK-JS-WEBPACKDEVSERVER-10300777
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
Reviewer's GuideThis PR addresses three security vulnerabilities by updating the Flow Diagram: Snyk Vulnerability Fix Process for scaffolder-backend-module-railsgraph TD
A[Snyk: Identifies Vulnerabilities in Dependencies] --> B["Snyk: Creates PR with package.json Updates for<br>plugins/scaffolder-backend-module-rails"];
B --> C["<strong>Updated Dependencies in package.json:</strong><br>- @backstage/backend-common: workspace:^ → 0.24.1<br>- @backstage/integration: workspace:^ → 0.1.0<br>- @backstage/plugin-scaffolder-backend: workspace:^ → 1.24.0<br>- @backstage/plugin-scaffolder-node: workspace:^ → 0.4.5"];
B --> D["<strong>PR Warning:</strong><br>yarn.lock not automatically updated"];
D --> E[Developer: Review PR Changes];
E --> F[Developer: Manually run 'yarn' to update yarn.lock];
F --> G[Developer: Commit updated yarn.lock];
G --> H[Developer: Merge PR];
H --> I[Vulnerabilities Addressed & Dependencies Updated];
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
| "@backstage/backend-common": "0.24.1", | ||
| "@backstage/config": "workspace:^", | ||
| "@backstage/errors": "workspace:^", | ||
| "@backstage/integration": "workspace:^", | ||
| "@backstage/plugin-scaffolder-backend": "workspace:^", | ||
| "@backstage/plugin-scaffolder-node": "workspace:^", | ||
| "@backstage/integration": "0.1.0", | ||
| "@backstage/plugin-scaffolder-backend": "1.24.0", | ||
| "@backstage/plugin-scaffolder-node": "0.4.5", |
There was a problem hiding this comment.
The change from workspace:^ to specific version numbers breaks the monorepo dependency structure. In a Yarn workspace setup, workspace:^ references indicate local packages within the same repository, ensuring that local development versions are used.
Replacing these with fixed versions (0.24.1, 0.1.0, etc.) forces package resolution from the npm registry instead of using local workspace packages. This will likely cause build failures and inconsistencies between packages.
While addressing the vulnerabilities is important, the fix should maintain the workspace references. Consider updating the vulnerable dependencies in their source packages within the monorepo instead of changing the reference style in this package.
| "@backstage/backend-common": "0.24.1", | |
| "@backstage/config": "workspace:^", | |
| "@backstage/errors": "workspace:^", | |
| "@backstage/integration": "workspace:^", | |
| "@backstage/plugin-scaffolder-backend": "workspace:^", | |
| "@backstage/plugin-scaffolder-node": "workspace:^", | |
| "@backstage/integration": "0.1.0", | |
| "@backstage/plugin-scaffolder-backend": "1.24.0", | |
| "@backstage/plugin-scaffolder-node": "0.4.5", | |
| "@backstage/backend-common": "workspace:^", | |
| "@backstage/config": "workspace:^", | |
| "@backstage/errors": "workspace:^", | |
| "@backstage/integration": "workspace:^", | |
| "@backstage/plugin-scaffolder-backend": "workspace:^", | |
| "@backstage/plugin-scaffolder-node": "workspace:^", |
Spotted by Diamond
Is this helpful? React 👍 or 👎 to let us know.
|
This PR has been automatically marked as stale because it has not had recent activity from the author. It will be closed if no further activity occurs. If the PR was closed and you want it re-opened, let us know and we'll re-open the PR so that you can continue the contribution! |
Snyk has created this PR to fix 3 vulnerabilities in the yarn dependencies of this project.
Snyk changed the following file(s):
plugins/scaffolder-backend-module-rails/package.jsonNote for zero-installs users
If you are using the Yarn feature zero-installs that was introduced in Yarn V2, note that this PR does not update the
.yarn/cache/directory meaning this code cannot be pulled and immediately developed on as one would expect for a zero-install project - you will need to runyarnto update the contents of the./yarn/cachedirectory.If you are not using zero-install you can ignore this as your flow should likely be unchanged.
Vulnerabilities that will be fixed with an upgrade:
SNYK-JS-WEBPACKDEVSERVER-10300775
SNYK-JS-MULTER-10299078
SNYK-JS-WEBPACKDEVSERVER-10300777
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Uncaught Exception
Summary by Sourcery
Bug Fixes: